ecode = EXIT_FAILURE;
}
+ g_message ("Shutting down GNOME Shell");
+ _shell_global_notify_shutdown (shell_global_get ());
+
meta_context_destroy (g_steal_pointer (&context));
shell_profiler_shutdown ();
{
NOTIFY_ERROR,
LOCATE_POINTER,
+ SHUTDOWN,
LAST_SIGNAL
};
0,
NULL, NULL, NULL,
G_TYPE_NONE, 0);
+ shell_global_signals[SHUTDOWN] =
+ g_signal_new ("shutdown",
+ G_TYPE_FROM_CLASS (klass),
+ G_SIGNAL_RUN_LAST,
+ 0,
+ NULL, NULL, NULL,
+ G_TYPE_NONE, 0);
props[PROP_SESSION_MODE] =
g_param_spec_string ("session-mode",
{
g_signal_emit (global, shell_global_signals[LOCATE_POINTER], 0);
}
+
+void
+_shell_global_notify_shutdown (ShellGlobal *global)
+{
+ g_signal_emit (global, shell_global_signals[SHUTDOWN], 0);
+}